import React from 'react';
import { Button, Result } from 'antd';
import { history } from '@umijs/max';

const App: React.FC = () => {

  const handleBack = () => {
    history.back(); // 返回到上一个页面
  };
  return(
  <Result
  status="404"
  title="404"
  subTitle="Sorry, the page you visited does not exist."
    extra={<Button type="primary" onClick={handleBack}>Back</Button>}
  />
  )
};

export default App;



